package com.qigao.mall.api;

import com.alibaba.fastjson.JSONObject;
import com.qigao.mall.commons.dto.AreaResultDto;
import com.qigao.mall.commons.enums.Result;
import com.qigao.mall.commons.region.Area;
import com.qigao.mall.commons.region.City;
import com.qigao.mall.commons.region.Province;

import java.util.List;

/**
 * @author luiz
 * @Title: com.qigao.mall.api
 * @ProjectName three-mall
 * @date 2019-11-2019/11/15 10:02
 * @Description:
 */
public interface RegionInfoService {
    void saveProvince(Province province);

    void saveCity(City city);

    void saveArea(Area area);

    Result<List<AreaResultDto>> findListByLevel(String ym,int areaLevel);

    Result findChildListByAreaCode(String publishYm, String areaCode);

    JSONObject genVantAreaData(String publishYm);
}
